import getlink from "@/api/getapi.js"
let MyOrderM = {
    state:{
        order:""
    },
    mutations:{
        UPORDERDATA(state,payload){
            state.order=payload
        }
    },
    actions:{
        LINK_ORDER_DATA(conorder,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.order,"order")
                conorder.commit("UPORDERDATA",ok.data.order)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default MyOrderM;
